package com.maslyk.invitation.entitybean.util;

import org.apache.log4j.Logger;

import com.maslyk.invitation.entitybean.Order;

public class CloneUtil {
	private static final Logger log = Logger.getLogger(CloneUtil.class);
	
	public static Order cloneOrder(Order ordr){
		try {
			return (Order) ordr.clone();
		} catch (CloneNotSupportedException e) {
			log.error("Blad clonowania obiektu order", e);
			return null;
		}
	}

}
